// 创建用户相关的小仓库
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', {
    state: () => {
        return {
            count: 0
        }
    },
    getters: {
        getCount(state){
            return state.count
        }
    },
    actions: {
        increment() {
            this.count++
        },
    },
})
